function getMask () {
    if (mask == null) mask = new Mask ();
    return mask;
}
function showMsg(msg,name){
	getMask().Mask();
    var div = document.getElementById(name);
    var width = parseInt (div.style.width);
    var height = parseInt (div.style.height);            
    var left   =   (document.body.clientWidth-width)/2;
    var top   =   (document.body.clientHeight-height)/2 ;    
    div.style.left=left+"px";
    div.style.top=top+"px";
    div.style.display="block";    
    var m_div = document.getElementById("Message");
    m_div.innerHTML=msg;
}
function hiddenMsg (name){
	 var div = document.getElementById(name);
	 div.style.display="none";
	 getMask().Unmask();
}